package cn.crce.cloud9.simple;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月10日 上午 08:34
 */
public class Case5 {
    public static void main (String args[]) {
        try {
            Sleep a = new Sleep ();
            Thread t = new Thread (a);
            //*********Found**********
            t.start();
            t.join();
            int j= a.i;
            System.out.println("j="+j+",a.i="+a.i);
        } catch (Exception e) {}
    }
}


//*********Found**********
class Sleep implements Runnable{
    int i;
    public void run () {
        try {
            //*********Found**********
            Thread.sleep(50);
            i= 10;
        }
        //*********Found**********
        catch (InterruptedException e) {}
    }
}